package com.wang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@RestController
@EnableAutoConfiguration
@EnableCaching
//@EnableRedisHttpSession
@EnableSwagger2
@ComponentScan(basePackages = {"com.wang", "com.wang"})
public class HelloController {

    @RequestMapping("/hello")
    public String index() {
        return "Hello World";
        }
        public static void main(String[] args) {
          SpringApplication.run(HelloController.class, args);
        }
    }

